package com.sxpi.order.mode.event.weixin;

import com.sxpi.order.mode.event.OrderEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Author: 董伟豪
 * @Date: 2022/10/28 20:26
 */
@Component
public class WeixinListener implements ApplicationListener<OrderEvent> {

    @Override
    public void onApplicationEvent(OrderEvent event) {
        messageWexin();
    }

    private void messageWexin(){
        System.out.println("发送了微信");
    }
}
